<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="utf-8" />
        <title>我的购物车-{eyou:global name='web_name' /}</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
        <link href="{eyou:global name='web_cmspath'/}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        {eyou:static file="users/skin/css/eyoucms.css"/}
        {eyou:static file="users/skin/css/cart.css"/}
        {eyou:static file="users/skin/css/element/index.css" /}
        {eyou:static file="users/skin/css/e-user.css" /}
        {eyou:include file="users/skin/css/diy_css.htm"/}
        {eyou:static file="/public/static/common/js/jquery.min.js"/}
        {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
        {eyou:static file="/public/static/common/js/tag_global.js"/}
        <style type="text/css">
            .none {display: none;}
        </style>
    </head>

    <body class="centre">
        <div class="ey-cart-header">
            <div class="ey-cart-header-con">
                <div class="ey-cart-header-l">
                    <div class="ey-logo"><a href="{eyou:global name='web_cmsurl' /}"><img src="{eyou:global name='web_adminlogo'/}" /></a></div>
                    <div class="ey-cart-title"><h2> 我的购物车 </h2></div>
                </div>
                <div class="ey-cart-header-r">
                    <div class="right-item user-news">
                        {eyou:user type='cart'}
                            <a href="{$field.url}" id="{$field.id}">
                                <span class="num" id="{$field.cartid}">0</span>
                                <span class="icon"><i class="iconfont-users2 icon-users2-gouwuche"></i></span>
                            </a>
                          {$field.hidden}
                        {/eyou:user}
                    </div>
                    <div class="right-item user-photo">
                        <a href="{eyou:Diyurl link='user/Users/index' /}"><img src="{$users.head_pic|get_head_pic=###}"/></a>
                        <div class="user-drop">
                            <ul>
                                <li><a href="{eyou:Diyurl link='user/Users/index' /}">个人中心</a></li>
                                <li><a href="{eyou:Diyurl link='user/Shop/shop_centre' /}">我的订单</a></li>
                                <li><a href="{eyou:Diyurl link='user/Users/collection_index' /}">我的收藏</a></li>
                                <li><a href="{eyou:Diyurl link='user/Users/logout' /}">安全退出</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            //头像下拉
            $(".user-photo").mouseover(function(){
               $(".user-drop").show();
            });
            $(".user-photo").mouseout(function(){
               $(".user-drop").hide();
            });
            var GetUploadify_url = "{:url('Uploadify/upload')}";
        </script>

        <div class="ey-body-bg">
            <div class="ey-body" style="padding: 0;">
                <div class="ey-container ey-shop-cart w1226">
                    <div class="mi-cart page-main">
                        <div class="container">
                            <div class="cart-container">
                                <div class="container-main">
                                    {eyou:spcart id="field" pagesize="5"}
                                    <div class="cart-wrap">
                                        <div class="addonitems-tips" style="display: none;">
                                            <div class="tip"></div><a href="javascript:void(0);">去凑单 &gt;</a>
                                        </div>
                                        <div class="cart-goods-list">
                                            <div class="list-head clearfix">
                                                <div class="col col-check"> 
                                                    <label class="checkbox-label table-checkbox">
                                                        <input type="checkbox" class="checkbox" {$field.InputChecked}>
                                                        <span class="check-mark"></span>
                                                    </label>
                                                    {$field.InputHidden}全选 
                                                </div>
                                                <div class="col col-img">&nbsp;</div>
                                                <div class="col col-name">商品名称</div>
                                                <div class="col col-price">单价</div>
                                                <div class="col col-num">数量</div>
                                                <div class="col col-total">小计</div>
                                                <div class="col col-action">操作</div>
                                            </div>
                                            <div class="list-body">
                                                <div class="list-item">
                                                    {eyou:spordergoods id="field2"}
                                                    <div class="item-box"  id="{$field2.cart_id}_product">
                                                        <div class="item-table">
                                                            <div class="item-row clearfix">
                                                                <div class="col col-check">
                                                                    <label class="checkbox-label table-checkbox">
                                                                        <input type="checkbox" class="checkbox" {$field2.CartChecked}>
                                                                        <span class="check-mark"></span>
                                                                    </label>
                                                                </div>
                                                                {$field2.hidden}
                                                                <div class="col col-img">
                                                                    <a href="{$field2.arcurl}"><img alt="{$field2.title}" src="{$field2.litpic}" width="80" height="80"></a>
                                                                </div>
                                                                <div class="col col-name">
                                                                    <div class="tags"></div>
                                                                    <div class="tags"></div>
                                                                    <h3 class="name">
                                                                        <a href="{$field2.arcurl}">
                                                                            {$field2.title}&nbsp;<span style="color: red;">{$field2.StatusMark}</span>
                                                                            {volist name='$field2.product_spec_list' id='spec'}{$spec.value}&nbsp;{/volist}
                                                                        </a>
                                                                    </h3>
                                                                </div>
                                                                <div class="col col-price">
                                                                    <span {$field2.UsersPriceId}>{$field2.users_price}</span>元<p class="pre-info"></p>
                                                                </div>
                                                                <div class="col col-num">
                                                                    <div class="change-goods-num clearfix">
                                                                        <a href="javascript:void(0)" {$field2.ReduceQuantity}><i class="iconfont"></i></a>
                                                                        <input type="text" class="goods-num" {$field2.UpdateQuantity}>
                                                                        <a href="javascript:void(0)" {$field2.IncreaseQuantity}><i class="iconfont"></i></a>
                                                                    </div>
                                                                </div>
                                                                <div class="col col-total">
                                                                    <span {$field2.SubTotalId}>{$field2.subtotal}</span>元<p class="pre-info"></p>
                                                                </div>
                                                                <div class="col col-action">
                                                                    <a href="javascript:void(0);" {$field2.CartDel} title="删除" class="del"><i class="iconfont"></i></a>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    {/eyou:spordergoods}
                                                </div>
                                            </div>
                                        </div>
                                        <div class="raise-buy-box"></div>
                                        <!-- 结算浮动 -->
                                        <!-- <div class="cart-bar clearfix cart-bar-fixed"> -->
                                        <!-- 结算浮动 -->
                                        <div class="cart-bar clearfix">
                                            <div class="section-left"><a href="{eyou:global name='web_cmsurl'/}" class="back-shopping">继续购物</a>
                                                <span class="cart-total">共 <i {$field.TotalCartNumberId}>{$field.TotalCartNumber}</i> 件商品，已选择 <i {$field.TotalNumberId}>{$field.TotalNumber}</i>件</span>
                                            </div>
                                            <span class="total-price">
                                                合计：<em {$field.TotalAmountId}>{$field.TotalAmount}</em>元
                                                <a href="JavaScript:void(0);" class="btn btn-a btn-disabled {gt name='$field.TotalNumber' value='0'} none {/gt}">去结算</a>
                                                <a href="JavaScript:void(0);" {$field.SubmitOrder} class="btn btn-a btn-primary {eq name='$field.TotalNumber' value='0'} none {/eq}">去结算</a>
                                            </span>
                                            <div class="no-select-tip {gt name='$field.TotalNumber' value='0'} none {/gt}">
                                                请勾选需要结算的商品<i class="arrow arrow-a"></i><i class="arrow arrow-b"></i>
                                            </div>
                                        </div>
                                    </div>
                                    {$field.hidden}
                                    {eyou:else /}
                                        <div class="empty-cart-wrap">
                                            <div class="empty-cart-top" style="">
                                                <h2 class="login-tip is-login">您的购物车还是空的！</h2>
                                                <a href="{eyou:global name='web_cmsurl' /}" class="btn btn-primary btn-shoping-yeslogin">马上去购物</a>
                                            </div>
                                        </div>
                                    {/eyou:spcart}
                                    <div class="cart-recommend">
                                        <div class="mi-recommend cart-recommend">
                                            <h2 class="recommend-title"><span >为您推荐</span></h2>
                                            <div id="J_recommend_cartBuy" class="recommend-bd">
                                                <ul class="recommend-list clearfix">
                                                    {eyou:arclist row="10" orderby='rand' channelid="2"}
                                                    <li class="recommend-item">
                                                        <a href="{$field.arcurl}"  target="_blank" title="{$field.title}">
                                                        <img alt="{$field.title}" width="140px" src="{$field.litpic}" lazy="loaded">
                                                        <div class="recommend-name">{$field.title} </div>
                                                        <div class="recommend-price">{$field.users_price}元</div>
                                                        <div class="recommend-tips">{$field.sales_num}人购买</div>
                                                        </a>
                                                        <div class="recommend-action"><a href="javascript:void(0);" class="btn btn-small btn-line-primary" {$field.ShopAddCart}>加入购物车</a></div>
                                                    </li>
                                                    {/eyou:arclist}
                                                </ul>
                                            </div>
                                            <div class="swiper-recommend-pagination" style="display: none;"></div>
                                            <div class="swiper-recommend-controls" style="display: none;">
                                                <span class="swiper-recommend-prev"><em class="iconfont-arrow-left-big"></em></span>
                                                <span class="swiper-recommend-next"><em class="iconfont-arrow-right-big"></em></span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                     </div>
                </div>
            </div>
        </div>
        {eyou:include file="users/users_footer.htm" /}